package com.jx.dao;

import com.jx.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User getUserByName(String username);

    List<User> getUserByUser(User u);

    List<User> getUserList(@Param("page") Integer page, @Param("limit") Integer limit, @Param("searchKey") String searchKey, @Param("searchValue") String searchValue);

    List<User> getUserTotle();
}